package com.alienlab.finder.service;

import com.alienlab.finder.domain.TaskDetails;

import com.alienlab.finder.domain.Warning;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

/**
 * Service Interface for managing TaskDetails.
 */
public interface TaskDetailsService {

    /**
     * Save a taskDetails.
     *
     * @param taskDetails the entity to save
     * @return the persisted entity
     */
    TaskDetails save(TaskDetails taskDetails);

    /**
     * Get all the taskDetails.
     *
     * @param pageable the pagination information
     * @return the list of entities
     */
    Page<TaskDetails> findAll(Pageable pageable);


    /**
     * Get the "id" taskDetails.
     *
     * @param id the id of the entity
     * @return the entity
     */
    Optional<TaskDetails> findOne(Long id);

    /**
     * Delete the "id" taskDetails.
     *
     * @param id the id of the entity
     */
    void delete(Long id);

    Warning addPositionInfomation(Long task_id, String position_x, String position_y) throws Exception;

    List<TaskDetails> getRoutes(Long task_id) throws Exception;
}
